home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
print
/
masdir54.arj
/
DRDOS.EXE
/
SDLPARMS.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-27
|
10KB
|
220 lines
ECHO Off
: SDLPARMS.BAT for DR DOS Version 5.0
IF NOT . == .%3 GOTO PARMSOK
ECHO Please start the setup program by running SDLSETUP.
GOTO QUIT
:PARMSOK
ECHO * * *
ECHO The first 5 selections are for some toggles:
ECHO SDL has several options which can be "toggled" by command line
ECHO switches. A toggle has only two possibilities, and the switch (option)
ECHO changes a toggle from its current setting to the opposite setting.
:MENU1
ECHO * * *
Echo 1 C Cls (Clear the screen)
Echo 2 M More (or Menu - pause at the end of each screen)
Echo 3 F Fre (Free space left on the disk)
Echo 4 H Hdr (Turn title lines off or on)
Echo 5 A All (Exclude "<DIR>"s and hidden files)
ECHO This section also includes defaults for:
Echo 6 S SORTing (Field, Reverse, Width)
Echo 7 COLumns (2,4,6)
Echo 8 Disk size (3.5,5.25)
Echo 9 Cluster size (0.5 1 2 4 8 Kb)
Echo After each selection you will return to the menu.
Echo Press Return or Esc to skip this section . . .
sdl_get c "Select by number: (1,2,3,4,5,6,7,8,9,cr) " 123456789CMFHAS}
IF ERRORLEVEL 125 SDLNOTOG %1 %2 %3
if NOT %GET% == 1 goto SELECT%GET%
:SELECTC
sdl_get b
ECHO * * *
ECHO You may set the clear screen (Cls) default to Off or On.
ECHO When it is ON the screen is cleared before and after each display.
ECHO When it is OFF the screen just scrolls and is a bit slower.
Echo Whichever default you choose, the /C option will toggle it.
ECHO * *
sdl_get N "Do you want Cls ON to be the default mode (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO f22F,22f,01>>SDLSETUP.TXT
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO f22F,22f,00>>SDLSETUP.TXT
GOTO MENU1
:SELECT2
:SELECTM
sdl_get b
ECHO * * *
ECHO SDL Version 5 uses "More" instead of "Pause" to stop and show
ECHO a Menu at the end of each screen display. This was changed from
ECHO earlier versions to reserve the /P option for Printing (Prn).
ECHO (Later you will be given the option to use /P for Pause if you prefer).
ECHO You may set the More/Pause default to Off or On.
Echo Whichever default you choose, the /M option will toggle it.
ECHO * * *
sdl_get N "Do you want pausing for More to be the default mode (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO f230,230,01>>SDLSETUP.TXT
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO f230,230,00>>SDLSETUP.TXT
GOTO MENU1
:SELECT3
:SELECTF
sdl_get b
ECHO * * *
ECHO SDL Version 5 has a /F option for showing Free Space (Fre) on
ECHO a disk. On a hard disk SDL is much faster if it doesn't have to
ECHO wait for DOS to get the Free Space. On a floppy disk the amount
ECHO of free space may be of interest, but you can display it by
ECHO pressing the F key at the end of the display. You may, however,
ECHO have the Free Space displayed automatically as the default.
ECHO Whichever you choose, the /F option will toggle it.
ECHO * * *
sdl_get N "Do you want Free Space ON to be the default? (y,N,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO f231,231,1>>SDLSETUP.TXT
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO f231,231,0>>SDLSETUP.TXT
GOTO MENU1
:SELECT4
:SELECTH
sdl_get b
ECHO * * *
ECHO You may set the Header (Hdr) default to On or Off.
ECHO When OFF it suppresses the first two lines of titles to leave
ECHO more space on the screen for file names.
Echo Whichever you choose, the /H option will toggle it.
ECHO (Whether you set it Off or On, you will be given a chance
ECHO to enter your default titles later.)
ECHO * * *
sdl_get N "Do you want the full Hdr (ON) to be the default (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO f232,232,15>>SDLSETUP.TXT
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO f232,232,13>>SDLSETUP.TXT
GOTO MENU1
:SELECT5
:SELECTA
sdl_get b
ECHO * * *
ECHO The /A for ALL option toggles the display of hidden files and directories.
ECHO If you select ALL as the default, SDL will automatically include
ECHO Hidden files and "<DIR>"s (subdirectories) in the directory display.
Echo Whichever default you choose, the /A option will toggle it.
ECHO * * *
sdl_get N "Do you want All to be the default mode (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO f233,233,00>>SDLSETUP.TXT
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO f233,233,16>>SDLSETUP.TXT
GOTO MENU1
:SELECT6
:SELECTS
sdl_get B
ECHO * * *
ECHO Reminder:
ECHO If you do not want to change a selection just press return (cr),
ECHO Press Esc to skip this section completely and go to the next menu.
ECHO * * *
ECHO The default SORT order (field) can be Name, eXtension, Date, or
ECHO the Original dOs order which is unsorted.
ECHO (Note that the letters above in CAPS are the option keys.)
ECHO * * *
sdl_get C "Press the letter for the SORT order you prefer (N,x,d,o,cr): " NXDO~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
SET GET=
IF ERRORLEVEL 88 IF NOT ERRORLEVEL 89 SET GET=58
IF ERRORLEVEL 79 IF NOT ERRORLEVEL 80 SET GET=4F
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 SET GET=4E
IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 SET GET=44
IF NOT ERRORLEVEL 125 ECHO f22E,22E,%GET%>>SDLSETUP.TXT
ECHO * * *
ECHO The sorting of file names can be in ascending order or in reverse
ECHO order. This applies to the N,X,S, or D sort selections, and it
ECHO is controlled by the /- toggle or the - selection from the menu.
Echo For example, SDL /- will reverse the order for the default sort field
Echo that you have selected. Also, SDL /S- or SDL /S /- would select the
Echo S(ize) field for sorting and toggle the order in which to sort it.
Echo * * *
Echo You may set default sort orders for each of the four sort fields.
Echo (These switches are processed from left to right, so that SDL /- /S
Echo or SDL /-S would not produce the same result as the above example.)
:ASorDS
ECHO * * *
Echo Press the letter for the sort order you want to change, CR to
Echo return to the menu, Esc for the next menu.
Echo N - Change N(ame) sort order - original default is Ascending.
Echo X - Change X(tension) sort order - original default is Ascending.
Echo D - Change D(ate) sort order - original default is Descending.
Echo S - Change S(ize) sort order - original default is Descending.
ECHO * * *
sdl_get C "Press the letter for the SORT order to change (n,x,d,s,cr): " NXDS~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
if errorlevel 125 goto SELECTw
IF ERRORLEVEL 88 IF NOT ERRORLEVEL 89 SET SDL=c
IF ERRORLEVEL 83 IF NOT ERRORLEVEL 84 SET SDL=d
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 SET SDL=e
IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 SET SDL=b
Echo You have selected %GET%
sdl_get C "Press A for Ascending, - for descending (A,-,cr): " A-~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 65 IF NOT ERRORLEVEL 66 ECHO f23%SDL%,23%SDL%,00>>SDLSETUP.TXT
IF ERRORLEVEL 45 IF NOT ERRORLEVEL 46 ECHO f23%SDL%,23%SDL%,01>>SDLSETUP.TXT
goto ASorDS
:SELECTw
echo * * *
echo File names can be listed in the sort order horizontally from left to
echo right, or vertically from top to bottom. Whichever default you choose,
echo the W (for Width) option will toggle it.
echo * * *
sdl_get C "Press W for horizontal, V for Vertical, or cr for no change (V,w,cr): " WV~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 87 IF NOT ERRORLEVEL 88 ECHO f228,228,01>>SDLSETUP.TXT
IF ERRORLEVEL 86 IF NOT ERRORLEVEL 87 ECHO f228,228,00>>SDLSETUP.TXT
GOTO MENU1
:SELECT7
sdl_get b
ECHO * * *
ECHO The default number of COLumns of files can be 2, 4 or automatic.
ECHO The original default is automatic which trys to show all the files on
ECHO one screen if possible. You can override the default with a
ECHO / option on the command line, or by making a new selection from
ECHO the menu at any pause.
ECHO * * *
sdl_get C "Press the number of COLs you prefer, or 0 for automatic (0,2,4,cr): " 024~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF NOT ERRORLEVEL 125 ECHO f22C,22C,%GET%>>SDLSETUP.TXT
GOTO MENU1
:SELECT8
sdl_get b
ECHO * * *
echo The type of disk can be selected with the 3 and 5 options; however, you
echo may select the default that will be used when the option is omitted.
ECHO This selection affects the width of disk labels printed only. You may
Echo want to select the size of labels for 3.5 inch disks from the next menu.
echo * * *
sdl_get c "Press 3 for 3.5 in. or 5 for 5.25 in. disk labels (5,3,cr): " 35~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 51 IF NOT ERRORLEVEL 52 ECHO f229,229,33>>SDLSETUP.TXT
IF ERRORLEVEL 53 IF NOT ERRORLEVEL 54 ECHO f229,229,00>>SDLSETUP.TXT
GOTO MENU1
:SELECT9
sdl_get b
ECHO * * *
echo When adding up the bytes for the total of the files, SDL rounds up to the
echo next kilobyte to provide an accurate indication of the amount of space
echo the files would occupy on a 360KB or 720KB diskette. 1.2MB and 1.44MB
echo diskettes use space in 0.5KB clusters, while hard disks may use 2KB, 4KB,
echo or 8KB clusters. The rounding factor may be selected on the command line
echo by indicating /B for 0.5KB, /B1 for 1KB, /B2 for 2KB, etc. You may select
echo a new default by pressing the size of the cluster you want.
echo * * *
sdl_get c "Press 0 for 0.5KB or 1, 2, 4 or 8 KB clusters (1,2,4,8,0,cr): " 01248~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
SET GET=
IF ERRORLEVEL 48 IF NOT ERRORLEVEL 49 SET GET=01
IF ERRORLEVEL 49 IF NOT ERRORLEVEL 50 SET GET=03
IF ERRORLEVEL 50 IF NOT ERRORLEVEL 51 SET GET=07
IF ERRORLEVEL 52 IF NOT ERRORLEVEL 53 SET GET=0F
IF ERRORLEVEL 56 IF NOT ERRORLEVEL 57 SET GET=1F
IF NOT . == .%GET% ECHO f227,227,%GET%>>SDLSETUP.TXT
GOTO MENU1
:QUIT
pause
REM SDLDEBUG will clean up any temporary files.
sdldebug END